import type { Meta, StoryObj } from '@storybook/react';
import ColorPickerPanel, { ColorPickerProps } from './ColorPickerPanel.tsx';
import { Color} from './color.ts'

const meta = {
  title: '数据输入/ColorPicker 颜色选择器',
  component: ColorPickerPanel,
  parameters: {
    layout: 'centered',
  },
  tags: ['autodocs'],
  argTypes: {
    // value: {
    //   control: 'color',
    // }
  },
} satisfies Meta<typeof ColorPickerPanel>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Value: Story = {
  name: '基本使用',
  args: {
    defaultValue: new Color('#ccc'),
  },
};
